package com.medicalfee.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import com.medicalfee.dao.ReimbursementListDAO;

public class DeleteReimbursementsController implements Controller {
	private ReimbursementListDAO reimbursementListDao;

	public void setReimbursementListDao(ReimbursementListDAO reimbursementListDao) {
		this.reimbursementListDao = reimbursementListDao;
	}

	@Override
	public ModelAndView handleRequest(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		// TODO Auto-generated method stub
		String ids[] = request.getParameterValues("id");
		reimbursementListDao.deleteReimbursement(ids);
		return null;
	}

}
